package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author hpiggy
 * @since 2023-09-04
 */
@TableName("student_class_type")
@ApiModel(value = "StudentClassType对象", description = "")
@Data
public class StudentClassType implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Integer yearPart;

    private Integer quarterNum;

    private Long studentId;

    private Long classTypeId;

    private Long subjectsId;

    private Long lastClassTypeId;

    private Integer yearClassId;

    private String remark;

    private String classTypeIdStr;

    private Long passShutQuarterId;

    private Integer passShutNum;

    private Long rightRadeQuarterId;

    private BigDecimal rightRade;

    private Long midtermQuarterId;

    private BigDecimal midtermScore;

    private Long endTermQuarterId;

    private BigDecimal endTermScore;

    // 需分的班型是否要和分层班型一致（被管理员分班过的学生改为不需要一致）
    private Integer isFit;

    // 是否调整，0否，1是
    private Integer isAdjust;

    private LocalDateTime adjustDateTime;

    @TableField(exist = false)
    private Long schoolId;

    @TableField(exist = false)
    private Long gradeId;

    @TableField(exist = false)
    private Long teacherId;

    @TableField(exist = false)
    private String teacherName;

    @TableField(exist = false)
    private Integer gradeSection;

    @TableField(exist = false)
    private Integer readingStatus;

    @TableField(exist = false)
    private Integer status;

    @TableField(exist = false)
    private Integer isUpFirst;



    /**
     * created_at
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    /**
     * updated_at
     */
    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedAt;
}
